<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>
<html>
<head>
<style>
.error {
	color: #ff0000;
}

.errorblock {
	color: #000;
	background-color: #ffEEEE;
	border: 3px solid #ff0000;
	padding: 8px;
	margin: 16px;
}
</style>

<!-- <c:url value="/css/myCssFile.css" var="cssURL" />-->
<!-- <link rel="stylesheet" type="text/css" media="screen" href="${cssURL}" />-->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><c:out value="${pageTitle}"></c:out></title>
<style>
<%@include file="/css/myCssFile.css"%>
</style>
<script type= "text/javascript"> 
function disableIt(radio){ 
	if(radio[0].checked){
		document.getElementById("dept").disabled=true;
		document.getElementById("login").disabled=false;
	}else{
		document.getElementById("login").disabled=true;
		document.getElementById("dept").disabled=false;
	}
} 
</script> 
</head>
<body>
	<div id="menu">
		<ul>
			<li class="ligne"><a class="link"
				href="<c:out value="/deptMarkUsr"></c:out>">Accueil</a></li>
			<li class="ligne"><a class="link" href="#">Compte</a>
				<ul class="pop pop1">
							<li><a class="link"
								href="<c:out value="/compte/add"></c:out>">
									Ajouter un compte</a></li>
							<li><a class="link"
								href="<c:out value="/compte/management"></c:out>">
									Modifier/Supprimer </a></li>
					<li><a class="link"
						href="<c:out value="/compte/lookup"></c:out>">
							rechercher compte(s)</a></li>
				</ul></li>
			<li class="ligne"><a class="link"
				href="/usr/changePass">changer mot de
					passe</a></li>
		</ul>
		<div class="alignr">
			<div>
				<c:out value="${userSession.familyName}"></c:out>
				<c:out value="${userSession.name}"></c:out>
			</div>
			<div>
				<a href="/deconnexion"><input
					type="submit" class="botton submit" name="logout"
					value="Déconnexion" /></a>
			</div>
		</div>
	</div>
	<c:choose>
		<c:when
			test="${pageTitle eq 'gestion' || pageTitle eq 'résultat de la recherche' || pageTitle eq 'Modifier/Supprimer un compte'}">
			<div class="box conx gestionBox">
		</c:when>
		<c:otherwise>
			<div class="box conx">
		</c:otherwise>
	</c:choose>